package com.ysu.yybk.mapper.discuss;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ysu.yybk.dto.GroupStudentDTO;
import com.ysu.yybk.entity.discuss.DiscussGroupStudent;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DiscussGroupStudentMapper extends BaseMapper<DiscussGroupStudent> {

    @Select("select id studentId,name studentName from student where id IN (SELECT student_id FROM course_student where course_id=#{courseId})")
    List<GroupStudentDTO> getClassStudent(String courseId);
}
